import {
	http
} from '@/api/index.js'

export function selectDatabaseNames(data) {
	return http({
		url: '/mysql/select/database',
		data: data,
		method: 'post'
	})
};

export function selectAllCharset(data) {
	return http({
		url: '/mysql/all/charset',
		data: data,
		method: 'post'
	})
};

export function selectAllCollation(data) {
	return http({
		url: '/mysql/all/collation',
		data: data,
		method: 'post'
	})
};

export function addMysqlDatabase(data) {
	return http({
		url: '/mysql/add/database',
		data: data,
		method: 'post'
	})
};

export function delMysqlDatabase(data) {
	return http({
		url: '/mysql/del/database',
		data: data,
		method: 'post'
	})
};

export function updateMysqlDatabase(data) {
	return http({
		url: '/mysql/update/database',
		data: data,
		method: 'post'
	})
};

export function selectAllTable(data) {
	return http({
		url: '/mysql/all/table',
		data: data,
		method: 'post'
	})
};

export function addTable(data) {
	return http({
		url: '/mysql/add/table',
		data: data,
		method: 'post'
	})
};

export function updateTable(data) {
	return http({
		url: '/mysql/update/table',
		data: data,
		method: 'post'
	})
};


export function delTable(data) {
	return http({
		url: '/mysql/del/table',
		data: data,
		method: 'post'
	})
};

export function selectTableStruct(data) {
	return http({
		url: '/mysql/select/table/struct',
		data: data,
		method: 'post'
	})
};

export function selectData(data) {
	return http({
		url: '/mysql/select/data',
		data: data,
		method: 'post'
	})
};